<script>
    $(document).ready(function(){
        $('.cancela').click(function(){
           $('#areaTroca').fadeOut(600);
        });
    });
</script>
<h1>Edição de Cargo</h1>
<?php echo form_open('apoio/editandoCargo')?>
<?php echo form_hidden('id', $cargo->id);?>
<table>
    <tr>
        <td>
            <?php echo form_label('Cargo:','icargo')?>
            <?php echo form_input('cargo',$cargo->cargo,'id=icargo')?>
        </td>
    </tr>
    <tr>
        <td>
            <?php echo form_submit('', 'Editar')?>
            <?php echo form_button('', 'Cancelar','class=cancela')?>
        </td>
    </tr>
</table>
<?php echo form_close()?>